import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { UserModule } from '../user/user.module'
import { QuestionRecord } from './entities/question-record.entity'
import { Question } from './entities/question.entity'
import { QuestionController, WebQuestionController } from './question.controller'
import { QuestionRecordService, QuestionService } from './question.service'

@Module({
  imports: [TypeOrmModule.forFeature([Question, QuestionRecord]), UserModule],
  controllers: [QuestionController, WebQuestionController],
  providers: [QuestionService, QuestionRecordService],
  exports: [QuestionRecordService],
})
export class QuestionModule {}
